From: Juanma Barranquero Date: Tue, 4 Dec 2007 15:48:25 +0000 (+0000) Subject: (ido-save-history): Set the `coding' local X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~25226 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=efccebb5740fb0d7d3084a4880677e5d226a36e5;p=emacs.git (ido-save-history): Set the `coding' local variable in the first line of the file. --- diff --git a/lisp/ido.el b/lisp/ido.el index 3801934fc3e..2a327439078 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -1309,6 +1309,7 @@ Value is an integer which is number of chars to right of prompt.") (unwind-protect (with-current-buffer buf (erase-buffer) + (insert ";;; -*- coding: utf-8 -*-\n") (setq buffer-file-coding-system 'utf-8) (ido-pp 'ido-last-directory-list) (ido-pp 'ido-work-directory-list) @@ -1317,7 +1318,7 @@ Value is an integer which is number of chars to right of prompt.") (if (listp ido-unc-hosts-cache) (ido-pp 'ido-unc-hosts-cache) (insert "\n;; ----- ido-unc-hosts-cache -----\nt\n")) - (insert "\n;; Local Variables:\n;; coding: utf-8\n;; End:\n") + (insert "\n") (write-file ido-save-directory-list-file nil)) (kill-buffer buf)))))